package com.HomeWorkhsp.Chapter08.poly_.detail_;

public class Test {
    public static void main(String[] args) {
        AAA obj = new BBB();
        System.out.println("obj的运行类型=" + obj.getClass());

        AAA b1 = obj;
        System.out.println("b1的运行类型=" + b1.getClass());

        obj = new CCC();
        System.out.println("obj的运行类型=" + obj.getClass());


    }
}
